package com.sskj.trafficcontrol.dao;

import com.sskj.trafficcontrol.model.pojo.TcUserOpenId;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface TcUserOpenidDAO {

    /**
     * 用户注册
     * @param openid
     * @param inviCodeOPenId
     */
    void registUser(@Param("open_id") String openid,@Param("inviCodeOPenId") String inviCodeOPenId);

    /**
     * 根据用户open_id查找用户
     * @param openid
     * @return
     */
    TcUserOpenId getOpenId(@Param("open_id") String openid);


    int getTest();
}
